package com.mucd.chat.mapper;

import com.ruoyi.common.core.domain.MessageRecord;
import com.ruoyi.common.core.domain.model.MessageListModel;
import com.ruoyi.common.core.domain.model.MessageRecordModel;

import java.util.List;

/**
 * @author mucd
 */
public interface MessageRecordMapper {

    int insert(MessageRecord record);

    /**
     * 查询两个人的两天记录
     * @param messageRecord messageRecord
     * @return 聊天记录
     */
    List<MessageRecordModel> selectListBySendUserIdAndReceiveUserId(MessageRecord messageRecord);

    /**
     * 查询未读消息数量
     * @param myUserId listParam
     * @return 未读消息数量
     */
    Integer selectNotReadNum(Long myUserId);
}
